﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MasterPages/registrationmaster.Master" CodeBehind="GameDevelopmentManagement.aspx.vb" Inherits="projectBiome.GameDevelopmentManagement" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="Styles/registrationStyle.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="mainContent" runat="server">
    <div id="mainContent">
    <div>
        <h1>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Welcome to Game User Management</h1>
        <asp:Button ID="btnMainMenu" runat="server" Text="Main Menu" 
            style="z-index: 1; left: 487px; top: 78px; position: absolute" />
        <asp:Label ID="lblName" runat="server" style="font-size: large" ></asp:Label>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <asp:DropDownList ID="GamesOwnedDropdownList" runat="server" 
            AppendDataBoundItems="True" AutoPostBack="True" 
            
            
            
            style="z-index: 1; left: 30px; top: 89px; position: absolute; height: 20px; width: 194px">
            <asp:ListItem>---Select Game---</asp:ListItem>
        </asp:DropDownList>
    </div>
</div>
<div id="mainContent">
    <div>
    </div> 
    <div>
        <asp:Button ID="btnSubmit" runat="server" Text="Submit Permission Changes" />
        <asp:Button ID="btnAdd" runat="server" Text="Add New Participant" />
    </div>
    <div>
        <asp:GridView ID="gvPermissions" runat="server" AutoGenerateColumns="False" 
            Caption="Current Particpants" style="margin-right: 3px">
            <Columns>
<%--                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chCurrentPermissions" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>--%>
                 <asp:ButtonField ButtonType="Button" CommandName="BtnAddParticipant" Text="Add" />
                <asp:BoundField DataField="ParticipantID" HeaderText="ParticipantID"></asp:BoundField>
                <asp:BoundField DataField="GroupID" HeaderText="Current Permissions"></asp:BoundField>
                <asp:TemplateField HeaderText="Update Permissions">
                <ItemTemplate>
                    <asp:DropDownList ID="ddlPermissions" runat="server" AutoPostBack="True" 
                        Height="17px" Width="185px">
                        <asp:ListItem Value="0">---Select Value---</asp:ListItem>
                    </asp:DropDownList>
                </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="FirstName" HeaderText="First Name" />
                <asp:BoundField DataField="LastName" HeaderText="Last Name" />
            </Columns>
        </asp:GridView>
        <asp:Button ID="btnUpdate" runat="server" Text="Add Selected Players to Game" />
    </div>
</div>
    <br />
    <br />
    <br />
        <asp:GridView ID="gvAdd" runat="server" AutoGenerateColumns="False" 
        Caption="Add a Participant" DataKeyNames="ParticipantID" >
            <Columns>
<%--                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="chAddPermissions" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>--%>
                <asp:ButtonField ButtonType="Button" CommandName="AddParticipant" Text="Add" />
                <asp:BoundField DataField="ParticipantID" HeaderText="ParticipantID"></asp:BoundField>

                <asp:TemplateField HeaderText="Permissions">
                    <ItemTemplate>
                        <asp:DropDownList ID="ddlAddPermissions" runat="server" AutoPostBack="True" 
                            Height="16px" Width="183px">
                            <asp:ListItem Value="0">---Select Permissions---</asp:ListItem>
                        </asp:DropDownList>
                    </ItemTemplate>
                </asp:TemplateField>
               <asp:BoundField DataField="FirstName" HeaderText="First Name" />

                <asp:BoundField DataField="LastName" HeaderText="Last Name" />

            </Columns>
        </asp:GridView>
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
        </asp:Content>
